<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
        let obj = {
            name:"老王",
            like:[
                "抽烟",
                "喝酒",
                "烫头"
            ],
            gf:[
                {
                    name:"迪丽热巴",
                    age:18
                },
                {
                    name:"马尔扎哈",
                    age:19
                },
                {
                    name:"古力娜扎",
                    age:20
                },
            ]
        };

        // 对象不关心顺序
        let {like:[a,b,c],name,gf:[{name:name1,age},{name:name2,age:age2},f]} = obj;

        

        // console.log(like); //不存在了
        console.log(a);
        console.log(b);
        console.log(c);
        console.log(name);
        console.log(f);
        console.log(name1);
        console.log(age);
        console.log(name2);
        console.log(age2);


    </script>
</body>
</html>